package cc.mrbird.febs.power.service.impl;

import cc.mrbird.febs.power.entity.AccountBindRoleInfo;
import cc.mrbird.febs.power.dao.AccountBindRoleInfoMapper;
import cc.mrbird.febs.power.service.IAccountBindRoleInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author MrBird
 */
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class AccountBindRoleInfoServiceImpl extends ServiceImpl<AccountBindRoleInfoMapper, AccountBindRoleInfo> implements IAccountBindRoleInfoService {

    private final AccountBindRoleInfoMapper accountBindRoleInfoMapper;

    @Override
    public List<Map> getRoleInfoByAccount(Integer accountId) {
        return accountBindRoleInfoMapper.getRoleInfoByAccount(accountId);
    }
}
